import axios from '../utils/axios'
//添加地址
export function addAddress(params){
  return axios.post('/address', params);
}
//编辑地址
export function EditAddress(params){
  return axios.put('/address', params);
}
//删除地址
export function DeleteAddress(id){
  return axios.delete(`/address/${id}`);
}
//获取默认地址
export function getDefaultAddress(){
  return axios.get('/address/default');
}
//获取地址列表
export function getAddressList() {
  return axios.get('/address', { pageNumber: 1, pageSize: 1000});
}
//获取地址详情
export function getAddressDetail(id){
  return axios.get(`/address/${id}`)
}